<template>
    <div class="black">
        <div class="fff">

            <slot name="title" :title="tilte" :subTitle="subTitle"></slot>
                        

            <div class="border"></div>
            <slot name="ctx"></slot>
            <span class="btn" @click="$emit('changeIsShow')">关闭</span>
        </div>
    </div>
</template>
<script>
export default {
  data(){
      return{
          tilte:'友情提示',
          subTitle:'请手动关闭弹层'
      }
  }
}
</script>
<style scoped>
.black{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top:0;
    background: rgba(0,0,0,.5);
}
.fff{
    width: 400px;
    height: 300px;
    background: #fff;
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin:auto
}
.btn{
    display: block;
    background: skyblue;
    color: floralwhite;
    width: 100px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
}
.border{
    width: 100%;
    height: 2px;
    background: #ccc;
}
</style>